pattern mode